<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin_public.css' />
<script type="text/javascript" src='__ROOT__/ueditor/ueditor.config.js' charset="utf-8"></script>
<script type="text/javascript" src='__ROOT__/ueditor/ueditor.all.min.js' charset="utf-8"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL='__ROOT__/ueditor/';
	window.onload=function(){
		window.UEDITOR_CONFIG.initialFrameHeight=400;
		//window.UEDITOR_CONFIG.initialFrameWidth=1000;
		UE.getEditor('myeditor');
	}
</script>
<style>
#right_top{
	height:60px;
}
#right_top_left{
	padding:7px;
	height:60px;
	width:50px;
	float:left;
}
#right_top_right{
	font-weight:bold;
	height:60px;
	width:460px;
	float:left;
	color:blue;
	line-height:60px;
}
#right_top_right span{
	font-size:12px;
}
#right_table{
	margin:16px auto;
	font-size:12px;
	font-weight:bold;
}
.td_f{
	background-color:#fafafa;
	width:150px;
	height:24px;
	text-align:right;
	color:#999;
}
#right_bottom{
	padding:10px;
	height:30px;
	text-indent:20px;
}
fieldset{
	margin:8px;
}
textarea{
	width:400px;
	height:100px;
	resize:none;
}
legend{
	color:blue;
}
</style>
</head>
<body>
	<div id='all'>

	<!-- 头部 -->
		<!-- 头部开始 -->
		<div id='header'>
			<div id='header_left'>
				lyolzjcms 后台管理系统
			</div>
			<div id='header_right'>
				<a href='__ROOT__' target="_blank">网站首页</a>
				<a href='__APP__/Index/index'>后台首页</a>
				<a href='__APP__/Index/loginout'>退出管理</a>
			</div>
		</div>
	<!-- 头部尾部 -->
	
		<div id='main'>
			<div id='main_left'>
	<ul>
		<li><a href='__APP__/Config/index'>全局配置</a></li>
		<li><a href='__APP__/Menu/index'>栏目管理</a></li>
		<li><a href='__APP__/Article/index'>文章管理</a></li>
		<li><a href='__APP__/Comment/index'>评论管理</a></li>
		<li><a href='__APP__/Links/index'>友链管理</a></li>
		<li><a href='__APP__/Singlepage/index'>单页管理</a></li>
		<li><a href='__APP__/Cache/index'>缓存管理</a></li>
	</ul>
</div>
			<div id='main_right'>

<form action="__URL__/update" method="POST">
				<div id='right_top'>
					<div id='right_top_left'>
						<img src='__PUBLIC__/images/menu.png' />
					</div>
					<div id='right_top_right'>
						项目管理
						<span>[创建]</span>
					</div>
				</div>
				<div id='right_table'>
					<fieldset>
						<legend>项目栏</legend>
						<table>
							<tr>
								<td class='td_f'>ID</td>
								<td>&nbsp;<?php echo ($max); echo ($data["id"]); ?></td>
								<input type="hidden" value="<?php echo ($data["id"]); ?>" name='id' />
							</tr>
							<tr>
								<td class='td_f'>标题</td>
								<td><input type='text' name='title' value="<?php echo ($data["title"]); ?>"></td>
							</tr>
							<tr>
								<td class='td_f'>副标题</td>
								<td><input type='text' name='alias' value="<?php echo ($data["alias"]); ?>"></td>
							</tr>
							<tr>
								<td class='td_f'>栏目</td>
								<td>
									<select name="menuid">
									<?php if(is_array($ordering)): foreach($ordering as $key=>$vo): ?><option value="<?php echo ($vo["key"]); ?>"><?php echo ($vo["key"]); echo ($key); ?></option><?php endforeach; endif; ?>
									</select>
								</td>
							</tr>
							<tr>
								<td class='td_f'>作者</td>
								<td><input type='text' name='author' value="<?php echo ($data["author"]); ?>"></td>
							</tr>
							<tr>
								<td class='td_f'>是否发布</td>
								<td>
									<input type='radio' name='status' value="1" />是
									<input type='radio' name='status' value="0" checked="checked" />否
								</td>
							</tr>
							
							<tr>
								<td class='td_f'>关键词</td>
								<td>
									<textarea name='keywords'><?php echo ($data["keywords"]); ?></textarea>
								</td>
							</tr>
							<tr>
								<td class='td_f'>描述</td>
								<td>
									<textarea name="description" ><?php echo ($data["description"]); ?></textarea>
								</td>
							</tr>
						</table>
					</fieldset>
					<fieldset>
						<legend>正文</legend>
						<textarea id='myeditor' name="fulltext"><?php echo ($data["fulltext"]); ?></textarea>
					</fieldset>
				</div>
				<div id='right_bottom'>
					<input type='submit' value='保存' />
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input type='button' onclick="javascript:history.back(-1)" value='取消' />
				</div>
				</div>
</form>
			</div>

	<!-- 尾部 -->
			<div id='clear_float'></div>
	<!-- 尾部开始 -->
		<div id='footer'>
			Powered by: <a href='#'>lyolzjcms</a>
		</div>
	<!-- 尾部尾处 -->
	</div>
	</div>
</body>
</html>